handle an array of mulitple values