implementaton of cooldown feature