textures now work correctly