fixed adding and deleting