avoid calling 'sizeWindow' twice