actvity_spec passed,add :activity function