update code, 2013-11-04, by diwen