edited Renderer class