modified to check data from mlb instead of testdata