fixed rendering to use interval