add code affinity post