added comment to explain what it does