toggle between joint states