cleanup print, and indent function