change sampler from List to Array