porting new samples
sample6 fix