in place resize is done.