tidying up output so as to put in thesis