unused variable and TextureKey removed