adjusted for window height