update var to try and fix error