minor details in the calculations