added lighting protocol function