replaced gt and lt with gte and lte in lines 17 and 20