removed some resizing code which is no longer necessary