code for ada and blended models