func pointer and parsing function