| update: refactor the rendering code.