modify sample codes