static function implementation in header file