updated some lighting mechanics