some simplifications to the shader code