removing type from the model