add method named replace