When you copied this, you changed the declaration from top-of-body to local—please revert that.