parsing function definition with new context