another change to the calculation to determine ip addr