re-added toggle functions