add print method