got rid of the useless window class