add the flag to indicate whether the activity reaches the frequency