reducing rows for search