the action must have taken place within the exercise of their duties