PLD: inner functions to class functions