added feature for printing