modified code not to use DHCP