new rendering code works