sets up the renderer