tidying up of file