changed colwise to numcolwise