send resolver as parameter