make lightstate pointer when calling setlightstate