corrected thread issue due to bounds change of the list