tidying debugging output