remove reduce calls from rendering code