get correct starting point of array