simplified toEither