more changes
added window control to greedy