take action method made for agent