converted math in sec 5.7