update, clarifying global variables