unsigned -> unsigned int
iterators
declare vars near first use