parser prints correct output