moved delay after light turned on