finalized lighting code for demo to gopi