add partitionPass; move to src