updated parser for 2nd order