modify return value of method Parser::parseSync()