cleanup
cleanup the light code