update to render in forEach