fixed verson code to int