added activation sample codes