fixed bug in transDec