handle raised windows
remove useless code