errors with copy fixed