changed deprecated textureCube() to texture()