better printing of code