Fixing errors

now adding and deleting work.