added patch pattern creation feature