replace ip association in right place