setting version var correctly