program setting and printing