added reset functions, activity record update