learning how to use proc properly