changed type4 to include all t_op