set rate in sampler and size in FLP