created initial and secondary search