switched loops