change to batch update