support maxRows