using replace, not insert