next order is I believe you made a spelling error, on line 61 you have "IF EDW THEN..." shouldn't it be "IF EDW THEN..."?