rename col to ncol and row to nrow