added toggle fun