replace throwError by Left for consistency