moved segment definitions to a separate file