variable naming convention should be max_row instead of maxrow