code with transmission with two optins