edited grouping scheme in search.php