Added procedure to match the print ast