board working with sam code