adjust printing code