delete function has been completed