change coordinates order