move vairable setting and getting to `var` category