changed print function to print lat lon