removed coupling with available_rows