basic version
works for nRows>=2