modified search part1