redo activity recognition stuff