change pattern weight