added dlete functionality