update ' to " and use match.arg