adjust regist function position