update on arrayToSelect helper