updating avg heart rate every second