update the scope