now accepts and array of values