refactor out VARS into common location