small update...to render function