fixing compare