[add] logic of adding deleting