initialized the renderer