parse function bodies