changed child[] to child [100], avoided thread exception