lab2  modified T-trigger remade