accused is in custody for the charges