added color weighting