build the frame