added delete check