fix empty array, use REST