update code, 2013-12-05, by diwen