tidying up file