update example to also check scope