fixed comparitors to make them more readable