checking for deleted