update code, 2013-11-20, by diwen