added methods for printing