replaced hard coded version with variables.