add some docs for parser function