add models functions