bottleneck vs scenario code