copy constructor doesn't work properly.