using the sam in data