implemented keyword compare