fixing partition def