added some comments in optimistic