minor adjustment of skybox functions