added a mock searching algorithm