Second 'to' isn't needed here -> "to determine where the data..."