added deleted flag