simplify and consolidate the rendering