took out lastfocusedwindow to see what happens