update models constructor