clarify the replacement conditions