converted math in sec 4.2