update refer to code snipet in md.