changed models with name functionality