renamed route elements to segments