updated parser to handle gt and lt