delete function added.