changed cal1 and cal2 funcs to ave over 1 min