fix warning by adding copy constructor and operator=

still need to implement it
WIP