Rendering for bending
Refactor for rendering
Also wrong order of commits