modified OR to make it more effecient
searchEngine homework1
after merge from previous modifications