why do you store this array, instead of retrieve selected rows when needed?