add to "var" to avoid being global