added row and column functions