inserted post into private function