tidying up terminal output