works on sam and bam