forst loop on 'indexOf' finished