added more compact sample
fixed sample