added a for loop and manually avg'd ranges; results not adequate
commented out code that averaged out the values; redundant and not neccessary