averaging data debugging