initialize the code box