replace only if element is found