regularizeType