addition of linear search