errors on vars fixed