finished nonlocal for 32 layers