PD into five func