changed order comparison