removed old rendering code