Modified assignSize();