add some base codes.