modify sample_code template