update for print method