new changes in delete functionality