update sub from main