improve grep to find averages