close some printout function