added code to render track