vesion variable declaration fix