check toggling working correctly