update print method