removed test for equal length, since ncol specifies non-atomic