modified:   getIP