initialize cur_trans to NULL on segments