update mac calculate