fix two minor errors.
for-loops and bonus things.