trying to figure out the delete bug