print method