calculated average wrong, now right!