fixed bug in tcarmean.pp