line averages working