updating some pattern