moved cooldown to more appropriate location.