(USER2) modifying delete function