update sub state