modified activity_recognition