adding and deleting properly