better printing of program