updated callback class for shaders