extends judicial custody