changed variable name bits to matches to make more sense