use three digits of percision when computing width