everything is running fine until outsideRanges. it passes two of the mocha tests for the function.