made basic primary toggling work