works on small dataset gets stuck on larger sets