sequential version of delete modified to suit the changes to be made in
the concurrent version