can now parse a complete function