getting close, just need to edit the output to show rule codes correctly for AMC rules