updated light values and a raw data output code