PLD: review scope of functions