added Pd functionality