added deleteN improved