added comment for the function