added comment explaining things