poorly functioning pancreas