edits to gbm math