fixed memu pattern generation with new method