parse func definition
rm irrelevant file