pattern format reorganization