reordered code in copy constructor. hopefully will fix it.