using correct pb type