replacing library