change ipnum from int to long