change code: partition