use for to access list<> for performance issue instead of foreach