code for full model