adding some base code