corrected bad datacopy