ygs2014-11-14 15:14:26 modify register function