converted math in sec 9.16
converted math in sec 9.17