project to empty residual goals so that call_residue_vars/2 works