remove func of add segment