add comment to helper function