tidying up the scripts