fixing 3stg_mac overflow