added a toggle function