moved free to inside of PD - to ensure isolation btw blocks