changed all > and == signs to use less than