modify the result type definition of parse function