added replace and remove