added replace methods