update code for comparecode file