changed activate method.