states and find_scope()