update code, 2013-12-03, by diwen