changed string array of IPs to dynamic arraylist