update segments