bug fix of IP 'any'
refactoring (rubocop issue)