fixed max row determination