deal with deleted spaces