added a version function