made other changes but I'm going to take

the last way of calculating dR