changed model selection method in oneto many relation