remove isRendering check