removed deprecated way of rendering file