use average for current sensing