fixed horizontal averaging