trying to fix the toggle