Finished type 3 of search EXCEPT QUERY IS NOT DONE