this is only used in a loop below and can be declared there.