result parser generalized to map arbitrary functions, and some typo