move data_types out from segments