adding delete function
fixing merge conflict