working on segmetns