added puf snippet for public function