added comment to a function