You werent gaining weight because you werent eating enough to achieve a caloric surplus. You said you hold water on that 'var', so there it is the weight you gained from it. Either that or its your idea and you didnt actually put on water weight or something on your diet isnt as your expected it...