finished #rescale_rows
removed coupling with available_rows