changed key "var" to "name"

aim to be consistent with other usage of "name"