updated compute sample