add models func