using means for replacing an element by another