replacing patch with epatch