adding int to ip function