added toggle method