block type assignment now with crude weighting algorithm