add light control function