OPINION OF THE COURT
This appeal is from an order of the district court denying Soyka’s petition for a writ of habeas corpus. At the time the petition was filed, Soyka was an inmate at the federal penitentiary at Lewis-burg, Pennsylvania, in the custody of the respondent, serving two sepárate sentences imposed by the United States District Court for the Southern District of New York. 1 The writ was filed, pur *304 suant to 28 U.S.C. § 2241, in the Middle District of Pennsylvania, seeking credit toward his second sentence for what is claimed to have been time spent in custody prior to sentencing “in connection with the offense or acts for which sentence was imposed.” 18 U.S.C. § 3568.
We need not recite the facts surrounding Soyka’s claim for we are of the opinion that the merits of the case can not be adjudicated at this time. Our inquiry at present is limited to questions involving the jurisdiction of this court: (1) Is Soyka’s claim cognizable solely in the court which sentenced him under 28 U.S.C. § 2255? (2) Must Soyka exhaust the administrative remedies available to him?
Soyka’s Section 2241 petition claims credit for time spent in custody pursuant to 18 U.S-.C. § 3568. Section 3568 provides, in pertinent part:
The sentence of imprisonment of any person convicted of an offense shall commence to run from the date on which such person is received at the penitentiary, reformatory, or jail for service of such sentence. The Attorney General shall give any such person credit toward service of his sentence for any days spent in custody in connection with the offense or acts for which sentence was imposed.
It is asserted by respondent that in seeking credit for pre-sentence time spent in custody, Soyka is attempting to have the court determine the commencement date of the sentence, and that, so viewed, he is attacking the correctness of his sentence. Therefore, the argument runs, Soyka’s exclusive remedy is in the sentencing court by way of a motion to correct sentence under 28 U.S.C. § 2255. 2
We are of the view that Section 2255 is inapplicable, for the essence of Soyka’s petition involves the computation of time served on his sentence.
3
Rather than collaterally attacking the sentence, he merely seeks a determination that certain time spent in custody should be applied to the sentence the validity of which is not in question. See Comulada v. Pickett,
Moreover, in providing that the Attorney General, not the court, is the one to grant credit toward service of a sentence, 18 U.S.C. § 3568 makes it clear that the giving of credit is an administrative, not a judicial, responsibility and is unrelated to the sentencing process. Bostick v. United States,
Respondent maintains that our decision in Sobell v. Attorney General of United States,
Respondent’s argument that United States v. Gaines,
Having concluded that Soyka instituted the present proceeding in the court of proper jurisdiction, we nevertheless find that he did so prematurely. As we have said, 18 U.S.C. § 3568 requires the Attorney General to give credit administratively for pre-sentence jail time served in connection with the offense for which sentence was imposed. Before Soyka is entitled to relief by way of habeas corpus, it must first appear that the Attorney General or the Director of the Bureau of Prisons has refused to afford him credit to which he is legally entitled. See Pace v. Clark,
The district court, by its order of March 6, 1972, rejected respondent’s argument vis á vis exhaustion of administrative remedies stating, “The cases cited by Respondent . . . are inapposite because the inmate-petitioner in those cases alleged abuse of discretion by the Warden. In the matter presently before the court, 18 U.S.C. § 3568 indicates that the Warden (as representative of the Attorney General) does not have to exercise any discretion.” We disagree that the absence of discretion under § 3568 is a significant factor. The Justice Department, Bureau of Prisons, is directly responsible for administering Section 3568 and has the power to review any action taken by local prison of *307 ficials whether that action be discretionary or mandatory. It is preferable to have allegedly erroneous decisions corrected at the administrative level, so that the facts can be better investigated, the Bureau’s expertise brought to bear, and the limited time of courts conserved.
For the reasons stated, the case will be remanded to the district court with directions to dismiss the petitioner’s writ of habeas corpus.
Notes
. Soyka was convicted in 1967 on charges of violating 21 U.S.C. §§ 173 and 174 and was sentenced thereon to five years imprisonment. While free on bail pending *304 appeal, he was charged with new and unrelated violations of 21 U.S.C. §§ 173 and 174, culminating in a second conviction and a sentence of 10 years imprisonment, to run concurrently with the five year sentence being served on the first offense.
. 28 U.S.C. § 2255 provides in part:
A prisoner in custody under sentence of a court established by Act of Congress claiming the right to be released upon the ground that the sentence was imposed in violation of the Constitution or laws of the United States, or that the court was without jurisdiction to impose such sentence, or that the sentence was in excess of the maximum authorized by law, or is otherwise subject to collateral attack, may move the court
which imposed the sentence to vacate, set aside or correct the sentence.
An application for a writ of habeas corpus in behalf of a prisoner who is authorized to apply for relief by motion pursuant to this section, shall not be entertained if it appears that the appellant has failed to apply for relief, by motion, to the court which sentenced him, or that such court has denied him relief, unless it also appears that the remedy by motion is inadequate or ineffective to test the legality of his detention.
. The commencement date of a sentence is fixed by 18 U.S.C. § 3568. It cannot be redetermined by courts, and Soyka does not in fact ask us to do so.
. The primary historic use of the writ of habeas corpus was to test the legality of a prisoner’s current detention. Walker v. Wainwright,
. The Supreme Court’s decision in Peyton v. Rowe,
. 18 U.S.C. § 3568 was amended in 1960, Pub.L. 86-691, § 1(a), 74 Stat. 738, to provide for the automatic granting of credit for pre-sentence custody by the Attorney General to those sentenced to minimum term offenses because courts did not have authority to give credit for minimum term offenses, resulting in an unwarranted disparity in effective sentences of defendants convicted of such offenses, in terms of total time in detention, between those posting bail and those who did not. No provision was made in this amendment for credit on non-minimum term offenses because Congress assumed that credit for pre-sentence custody for lack of bail would continue to be provided by sentencing courts as a matter of course. See Stapf v. United States,
The statute was again amended in 1966 by the Bail Reform Act, Pub.L. 89-465, § 4, 80 Stat. 217, assuring credit, as am administrative function of the Attorney General, for all pre-sentence custody (and not merely for want of bail) served in connection with the offense for which sentence was imposed.
. See note 6, supra.
. In a document entitled “Traverse to Response to Rule to Show Cause,” filed in the district court on September 20, 1971, Soyka admits at page 6 that he has failed to exhaust his administrative remedies by applying to the Warden or the Director of the Bureau of Prisons.
. Policy Statement 7300.2B, 8-7-72, Bureau of Prisons, currently effectuates the policy with regard to the Prisoner’s Mail Box. Prior to the time Soyka filed for habeas corpus in the district court on July 15, 1971, Policy Statement 7300.2A, 12-28-67, provided the same administrative relief.
