fixed Q calc in averaging