add and replace methods polish