update code, 2013-11-11, by diwen