tidying weton script