update 2013-12-06 add setting function