added mehtod for getting closest in range from list