accept two params in render function