tidying scripts