fixed warning about compareGreen being undeclared