add insert and replace