updated for multiple lights