replace 1024^2 with partsize