update pattern.md format