resource segments working