unnecessary check of length of the value array