removed bug
skeleton of trend compilation in palce, need to add actual classification and weighting