use first element of array, add dist