init the codes