remove not required segment