added showing rows per line (fixed bug)