update of print method