updating size fxn