local_vs_nonlocal works