rendering the frame