clean up partition precondition for custom lengths