made a minor change with definition of scope