modify the light check