removed toggle function