implemented sub which is important for implementing >, <, =, etc