changed longarr to intarr