medium add and delete