modify batch,and update relation