added linear search