comparison functions implemented; - sign replaced with ¯