added print method