clearer rendering code