added terminal cap