updated the sam library