simple activity detection and compute during time done