type error in model name