changed the hard coded version to parameter