added logic for checking glsl