optimize shaders a bit