fixed error in scope