using sigNum instead of compareTo