made RenderObject faster by using arrays