automated copy constructor not working yet