removed resizeWindow