added delete fxnality