32bit vs 16bit, thanks Paul!
Sorry, Michael for the 32 vs 16 bit explanation I meant.
changing the analog value to long instead of int was enough, I really never thought about 16 bits. (burden of using c++ and not thinking about the hardware I suppose)
Everybody thanks for your input!