trying to figure out how to consolidate variables across objects