added iteration counter increase, converting names to capitalized now