add "var" to avoid being global