changed to analyze one by one