fix var string to int

Data coming from user is automatically read as a string, parsed data to int