x-y array order changed