change printing code