change display*() prototype to send output to stream