overloads for the replace