added comment describing add function