rewrite renderer for new data format