add version variable instead of hard-coded version number