template for codes