frame and rendering