implemented better lsiding windows' technique