regist dictionary function