delete functionality - temp changes
new changes in delete functionality