fill CATCNT and CATWT functions added