changed flashlight functionality