comment helper function