update system to use better method for variables