correctly get lengths of model values