converting between several punchcodes