chenged instanciation code snippet