fixed incorrect defintion for scope