used new new_type_frame() to generate frame types