changes AST to fit to visitor