assignment error in clone for saving registers2