code cleanup: don't use same var name for 2 different objects