added an explanation of the code snippet