got function definition parsing working