change register dir