save segment method implemented