added searching functionality