change getBytes(int) for int2byteArray(int)