code translation to generic-AST works but need to test more