unneccessary if checks in partDist removed