added tmp field for modify_copy