completed print functionality