use proc type instead of conditional code