confused snippet from @sw1nn.