new feature weighting; more rigorous math