add comments to functions