fixing add and delete methods