adding replace feature