added alternate toggler function