correctly ref parameters in level 2