init segments