changed delete functionality process