change "file" and "slice" to "segment"