tty defined but never used