add comparison operator logic