did some work on delete record