added comment to functions