On the modulation of X ray fluxes in thunderstorms