use mode to figure out if we have coordinates