adding new compare test. need to fix up the loop