modify ast builder for method and others