(feat) implemented buffered writer in render_data method