clean leftovers from copy