segmented control hooked up to give output