changed reference to static function to not be instance based