update code, 2013-11-19, by diwen