clean up pretty printing of objects