createCodeTree probable implementation