better system for vars