fix version() usage