fix average step