fix for deleted copy constructor