start print functionality