removed windowHeight dependency
minor