use decimal for average instead of int