faster iterations , removed quick sort