fixes no visible binding for global variable ‘wscores’