-add joint base code