imple some parser function