create pattern