replaced the ParseResult by Try