remanded to judicial custody