modify sample_input and struct's content