m_type switch case starting from 0 instead from 1.