update code, 2013-12-09, by diwen