Revert "toggle function."

This reverts commit fe14f1c0f2e56cda0043376f1bba30db46f6a489.