modified OD005 and OD006 to use corrected variables