correct window class
more level logic