functions for IP locations