changed variable names in MLB algorithm