check whether this replacement is needed