add comment to function