return directly last element of array