need some reallocate advice