worked on converting search to a scope