modifying terminal logic
modifying terminal logic