replaced usage of deprecated constructors