can you add a comment about this, it's hard to follow the code.