fixed gar to var