trying resizing code