sweep both n and resV