added constant TOTAL_ROWS