adding some funcions to code_0707