cleanup
compatibility with qt5