add fuction for startRender