better use of replacement in obsoletes