implementing the action