add 0.5s delay between off and on