ip funciton working better