updated output program