fixed deleting

need to figure out the best way to test this