better fanout function and delay