change int to short to fit 32bit system