adding cat2col functionality