deal with deleted entries