adding console.log to see whats going on in the findRange function