including Tarcisio's matrix and fixing world, viewport and window classes