added terminal reference