use value from array