deleting function to add new data