modified activity code