added method types to AST