when driving car looses power off and on when driving on 2004 Volkswagen Beetle

only seems to happen when damp out engine light not on

1 answer
poss mass air flow sensor but scan codes and adv