avoid integer overflow in pc_cor_TS