add params argument to recursive calling of render