update data recording and stuff