adding a proc that determines type of pN table