prepairing for rendering