base template for sam