rendererr: refactor