change partition method