This looks like a typo. Should `ip` be `i.ip` here?