complete the printing procedure