nicer test to check for doubles