added weight for phi-replace