re-factored OxPE per C number script