added linear search method