replaced startRender/endRender with done