model score calculations and function score calculations