converted math in sec 6.6