implement <, > and = based on sub procedure