added comment for function