changed ptr type for Lighting