added comment to the functions