What's the intention of this code?