refactor IP address as a variable