fixed brute force - note to self, you must use Double.equals() not ==