replaced codeMap with pointers