resize working better