Change scope from string to integer