first int array version