removed averaging, fixed typo