put print_can_frame into sub