added comment for function add