changed id and array