fixed double looping
working with spoiled children