added terminal elements to flex