working fine but summing isn't working after the delete