keep array indizes when unordered
update