update code, 2013-12-07, by diwen