started some of the light sample functions