update code, 2013-11-14, by diwen