implemented reset toggle method