getting rid of any reference to segments