unoptimized some regex for clarity