shader check functions