added task weighting