fixing some deprecated constructors