converted math in sec 6.5