prediction uses distributor and writer