error checking in custom copy