added index weighting, upper case works better now too